<?php
class AppController extends Controller {
    var $helpers = array('Html', 'Session', 'Javascript', 'Ajax', 'Js' => 'Prototype');
    var $components = array('Auth', 'Session');
    /** @var AuthComponent */
    var $Auth;

    function beforeFilter() {
        parent::beforeFilter();
        $this->layout = 'ajax';
        $this->Auth->allow('*');
        $this->Auth->userModel = 'Account';
        $this->Auth->fields = array('username' => 'email', 'password' => 'password');
    }

}
?>